﻿@model Sidvall.WorkItemManager.Web.Host.Models.WorkItemsModel
@{
	ViewBag.Title = "Work Items";
}
<h2>@ViewBag.Title</h2>
<hr />
@{
	if (Model.WorkItems.Count == 0)
	{
		<div>
			<p>
				No work items.
			</p>
		</div>
	}
	else
	{
		<table>
			@for (int i = 0; i < Model.WorkItems.Count; i++)
			{
				var item = Model.WorkItems[i];
				<tr>
					<td>
						@Html.RouteLink(item.Name, "EditWorkItem", new { id = item.WorkItemId.Value })
					</td>
				</tr>
			}
		</table>
	}
}
